package request

type TmallServicecenterServicemonitormessageUpdateRequest struct {
	/*
	   预警消息id     */
	ServiceMonitorMessageId *int64 `json:"service_monitor_message_id" required:"true" `
	/*
	   预警处理备注     */
	Memo *string `json:"memo,omitempty" required:"false" `
	/*
	   可更新状态：3、已读     */
	Status *int64 `json:"status" required:"true" `
}

func (s *TmallServicecenterServicemonitormessageUpdateRequest) SetServiceMonitorMessageId(v int64) *TmallServicecenterServicemonitormessageUpdateRequest {
	s.ServiceMonitorMessageId = &v
	return s
}
func (s *TmallServicecenterServicemonitormessageUpdateRequest) SetMemo(v string) *TmallServicecenterServicemonitormessageUpdateRequest {
	s.Memo = &v
	return s
}
func (s *TmallServicecenterServicemonitormessageUpdateRequest) SetStatus(v int64) *TmallServicecenterServicemonitormessageUpdateRequest {
	s.Status = &v
	return s
}

func (req *TmallServicecenterServicemonitormessageUpdateRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.ServiceMonitorMessageId != nil {
		paramMap["service_monitor_message_id"] = *req.ServiceMonitorMessageId
	}
	if req.Memo != nil {
		paramMap["memo"] = *req.Memo
	}
	if req.Status != nil {
		paramMap["status"] = *req.Status
	}
	return paramMap
}

func (req *TmallServicecenterServicemonitormessageUpdateRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
